<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="UTF-8">
	<title>菜鸟的菜</title>
	<meta name="description" content="陈普个人博客网站,一个非科班且刚毕业的php菜鸟，为大家提供技术文章、源码分享" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="/Public/css/bootstrap.min.css" rel="stylesheet">
  <link href="/Public/css/home_public.css" rel="stylesheet">
  <link href="/Public/css/home_index.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="/skin/2018/js/modernizr.js"></script>
<![endif]-->
</head>
<body>
<!--   <script>
  window.onload = function ()
  {
    var oH2 = document.getElementsByTagName("h2")[0];
    var oUl = document.getElementsByTagName("ul")[0];
    oH2.onclick = function ()
    {
      var style = oUl.style;
      style.display = style.display == "block" ? "none" : "block";
      oH2.className = style.display == "block" ? "open" : ""
    }
  }
</script> -->
<style type="text/css">body { padding-top: 70px; }</style>
<div class="container-fluid">
  <nav class="navbar-fixed-top">
    <div class="row">
      <div class="col-md-3">
        <div class="navbar-brand">
          <div class="hidden-xs b-nav-background"></div>
          <div class="b-logo-code">
            <span class="b-lc-start">&lt;?php</span>
            <span class="b-lc-echo">echo</span>
            <span class="b-logo-word">'陈普个人博客'</span>
            <span class="b-logo-end">;</span>
          </div>
        </div>
      </div>
      <div class="col-md-6">
        <ul>
          <li><a href="<?php echo U('Index/index');?>">首页</a></li>
          <li><a href="<?php echo U('Index/page_php');?>">PHP</a></li>
          <li><a href="<?php echo U('Index/page_linux');?>">LINUX</a></li>
          <li><a href="<?php echo U('Index/page_talks');?>">杂谈</a></li>
          <li><a href="<?php echo U('Index/page_books');?>">书单</a></li>
          <li><a href="<?php echo U('Index/page_msg');?>">留言</a></li>
          <li><a href="<?php echo U('Index/page_about');?>">关于本站</a></li>
        </ul>  
      </div>
    </div>
  </nav>
</div>
<article>
  <div class="leftbox">
    
	<div class="news_pl">
		<h2>留言精选</h2>
		<ul>
			<div class="gbko">
				<!--PC和WAP自适应版-->
				<div id="SOHUCS" sid="请将此处替换为配置SourceID的语句" ></div> 
				<script type="text/javascript"> 
					(function(){ 
						var appid = 'cytMYyHrG'; 
						var conf = 'prod_e56fa5188b1ddc7a5dd1bd3abd54b4c6'; 
						var width = window.innerWidth || document.documentElement.clientWidth; 
						if (width < 960) { 
							window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="http://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("http://changyan.sohu.com/upload/changyan.js",function(){window.changyan.api.config({appid:appid,conf:conf})}); } })(); </script>
						</div>
					</ul>
				</div>
			
  </div>
  <div class="rightbox">
    
          <div class="search">
      <form action="<?php echo U('Index/index');?>" method="post" name="searchform" id="searchform">
        <input name="keyword" id="keyword" class="input_text" placeholder="请输入关键字" autocomplete="off" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字'}" type="text">
        <input name="show" value="title" type="hidden">
        <input name="tempid" value="1" type="hidden">
        <input name="tbname" value="news" type="hidden">
        <input name="Submit" class="input_submit" value="搜索" type="submit">
      </form>
    </div>
      <div class="paihang">
	<h2 class="ab_title">文章推荐</h2>
	<ul class="rank">
		<?php if(is_array($recommend_article)): $i = 0; $__LIST__ = $recommend_article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('Index/article_detail');?>?id=<?php echo ($vo2["id"]); ?>" title="{vo2.title}"><?php echo ($vo2["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
	</ul>
</div>     
      <div class="paihang">
  <h2 class="ab_title">点击排行</h2>
  <ul class="paih">
    <?php if(is_array($hot_article)): $i = 0; $__LIST__ = $hot_article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo3): $mod = ($i % 2 );++$i;?><li>
        <a href="<?php echo U('Index/article_detail');?>?id=<?php echo ($vo3["id"]); ?>" title="<?php echo ($vo3["title"]); ?>"><?php echo ($vo3["title"]); ?></a>
      </li><?php endforeach; endif; else: echo "" ;endif; ?>
  </ul>
</div>   
      <div class="weixin">
	<h2 class="ab_title">我的微信</h2>
	<ul>
		<img src="/Public/images/weixin.jpg">
	</ul>
</div>
      <div class="paihang center-block">
	<h2 class="ab_title">友情链接</h2>
	<ul class="paih">
		<?php if(is_array($links)): $i = 0; $__LIST__ = $links;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($vo1["url"]); ?>" target="_blank"><?php echo ($vo1["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
	</ul>
</div>
    
  </div>
</article>
<footer>
  <p><a href="http://www.miibeian.gov.cn">豫ICP备18017586号</a>&nbspCopyright © <?php echo Date("Y");?> 陈普 All Rights Reserved</p>
</footer>
</body>
</html>